home *** CD-ROM | disk | FTP | other *** search
- Path: nntphost.st-and.ac.uk!bd
- From: bd@davaar.st-and.ac.uk (Brian Duff)
- Newsgroups: comp.lang.c
- Subject: Re: gettimeofday() makes me mad !
- Date: 29 Feb 1996 15:22:04 GMT
- Organization: University of St. Andrews
- Message-ID: <BD.96Feb29152204@davaar.st-and.ac.uk>
- References: <4gnkth$4on@piston.ecp.fr> <4gu1ue$39m@news-f.iadfw.net>
- Reply-To: bd@st-and.ac.uk
- NNTP-Posting-Host: davaar.dcs.st-and.ac.uk
- In-reply-to: alpet@airmail.net's message of Tue, 27 Feb 1996 06:37:12 GMT
-
- In article <4gu1ue$39m@news-f.iadfw.net> alpet@airmail.net (Adam Peterson) writes:
-
- dureta8@cti.ecp.fr (BIG ONE) wrote:
-
- > Hello all. If someone could help...
-
- >COMPILER : gcc, or cc on a Unix system.
-
- >PROBLEM : I'm trying to make a little program which must repeat an
- >action every .2 second for example ( less than 1 sec anyway). time()
- >wouldn't fit, so I searched and found the function gettimeofday() in
-
- You are on a Unix system, any reason you are not using 'sleep'?
-
- Adam
-
-
- AFAIK, sleep can only take times in 1 second increments. Don't know
- about how to implement a shorter time, though. I'd like to know...
-
- Brian
-
-
- --
- --
- I am Pentium of Borg. You will be approximated, accuracy is futile!
-
- |> Brian Duff - University Of St. Andrews |\
- |> http://www-2nd-cs.dcs.st-and.ac.uk/~bd |/
-